//
//  activityTableViewCell.m
//  ui豆瓣
//
//  Created by lirui on 15/12/23.
//  Copyright © 2015年 www.lanou3g.com蓝鸥科技. All rights reserved.
//

#import "activityTableViewCell.h"

@implementation activityTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [ super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        _img = [[ UIImageView alloc] init];
        [ self.contentView addSubview:_img];
        self.img.image = [UIImage imageNamed:@"bg_eventlistcell"];
        
        _img2 =[[UIImageView alloc] init];
        [self.img addSubview:_img2];
        self.img2.image = [ UIImage imageNamed:@"bg_share_large"];
    
        
        _activename = [[ UILabel alloc] init];
        [self.img addSubview:_activename];
        _activename.font = [UIFont systemFontOfSize:20];
        
        
        _adress = [[ UILabel alloc] init];
        [self.img2 addSubview:_adress];
        _adress .numberOfLines = 2;
        _adress.font = [UIFont systemFontOfSize:14];
        
        
        _time = [[UILabel alloc] init];
        [self.img2 addSubview:_time];
        _time.font = [ UIFont systemFontOfSize:14];
        
        
        _style = [[UILabel alloc] init];
    [self.img2 addSubview:_style];
      _style.font = [ UIFont systemFontOfSize:14];
    
        
        _lovelabel = [[UILabel alloc] init];
        [self.img2 addSubview:_lovelabel];
        _lovelabel.font = [ UIFont systemFontOfSize:14];
        
        _join = [[ UILabel alloc] init];
              [self.img2 addSubview:_join];
               _join.font = [ UIFont systemFontOfSize:14];
        
        _ti = [[UIImageView alloc] init];
        [self.img2 addSubview:_ti];
               _ti.image = [UIImage imageNamed:@"icon_date"];
        
        _ad =  [[UIImageView alloc] init];
        [ self.img2 addSubview:_ad];
      
        _ad.image = [ UIImage imageNamed: @"icon_spot"];
        
        _sy = [[ UIImageView alloc] init];
        [ self.img2 addSubview:_sy];
        
        _sy.image = [UIImage imageNamed:@"icon_catalog"];
        
        self.activeimg = [[ UIImageView alloc] init];
        [self.img2 addSubview:self.activeimg];
        _activeimg.backgroundColor = [UIColor redColor];
        
    } return  self;
}
-(void)layoutSubviews
{
    [super layoutSubviews];
    
    
    _activename .frame = CGRectMake(20, 0, 300, 50);
    _time.frame = CGRectMake(25, 0, 250, 30);
    _adress.frame  =CGRectMake(25, 30, 200, 50);
    _style.frame = CGRectMake(25, 80, 180, 30);
    _lovelabel.frame =CGRectMake(25, 120, 100, 20);
    _join.frame = CGRectMake(130, 120, 100, 20);
    _img.frame = CGRectMake(10, 10, 355, 200);
    _img2.frame = CGRectMake(5, 50, 343, 145);
    _ti.frame = CGRectMake(0, 5, 20, 20);
    
    _ad.frame = CGRectMake(0, 40, 20, 20);
    _sy.frame =  CGRectMake(0, 85, 20, 20);
    _activeimg.frame = CGRectMake(250, 5, 90, 135);
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
